'use strict'

module.exports = (app) => {
	const { STRING, INTEGER, DATE } = app.Sequelize

	const RoleMenu = app.model.define(
		'role_menu',
		{
			rid: INTEGER,
			mid: INTEGER,
			prim: INTEGER,
		},
		{
			tableName: 'role_menu', //指定表名称
			timestamps: false,
		}
	)
	// RoleMenu.associate = function () {
	// 	RoleMenu.belongsTo(app.model.Menu, {
	// 		foreignKey: 'prim',
	// 		targetKey: 'remark',
	// 	})
	// }

	return RoleMenu
}
